@extends('index.app')

@section('navbar')
    <ol class="breadcrumb">
        <li><a href="{{url('/')}}">首页</a></li>
        <li class="active">登陆</li>
    </ol>
@endsection
@section('content')
    <div class="panel panel-default">
        <div class="panel-heading">登陆</div>
        <div class="panel-body">
            <form id="login_form" class="form-horizontal" method="POST" action="{{ url('/account/login') }}">
                <input type="hidden" name="_token" value="{{ csrf_token() }}">
                
                <div class="form-group">
                    <label for="email" class="col-sm-2 control-label">电子邮件</label>

                    <div class="col-sm-3">
                        <input type="email" class="form-control" id="email" name="email" placeholder="输入你的电子邮件地址" value="{{old('email')}}">
                    </div>
                </div>
                <div class="form-group">
                    <label for="password" class="col-sm-2 control-label">密码</label>

                    <div class="col-sm-3">
                        <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-offset-2 col-sm-3">
                        <div class="checkbox">
                            <label>
                                <input type="checkbox" name="remember" <?=old('email') ? 'checked' : ''?>> 记住我
                            </label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-10 col-sm-offset-2">
                        <button type="submit" class="btn btn-primary">登陆</button>
                        <a class="btn btn-link" href="{{ url('/password/mail') }}">忘记密码？</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
@endsection
